﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class dongwu
    {
        public int leg;
        public int Leg
        {
            get { return this.leg; }
            set { this.leg = value; }
        }
        public void eat()
        {
            Console.WriteLine("我会吃");
        }
        public void shui()
        {
            Console.WriteLine("我会睡");
        }
        public virtual void jiao()
        {
            Console.WriteLine("我会叫");
        }
        public void tui()
        {
            Console.WriteLine("我有腿"+leg);
        }
    }
}
